import { createRouter, createWebHistory, } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
    {
        path: '/system',
        name: 'list',
        component: () => import('../../../pages/sys/index.vue'),
        meta: {
            title: '系统管理',
        },
        children: [
            {
                path: '/system/list',
                name: 'list',
                component: () => import('../../../pages/sys/list.vue'),
                meta: {
                    title: '系统列表',
                }
            },
            {
                path: '/system/setOptions',
                name: 'setOptions',
                component: () => import('../../../pages/sys/setOptions.vue'),
                meta: {
                    title: '系统设置',
                }
            }
        ]
    }
]   
const router = createRouter({
    history: createWebHistory(),
    routes: routes
})
export default router
    
